﻿@model IEnumerable<MvcCms.Data.Project>
@section HtmlHead{
}
<p>
    @Html.ActionLink("Create New", "Create", null, new { @class = "button" })
</p>
<br />
<table class="grid">
    <tr>
        <th>
        </th>
        <th>
            Name
        </th>
        <th>
            Description
        </th>
        <th>
            Is Help Desk
        </th>
        <th>
            Creator
        </th>
        <th>
            Date Created
        </th>
        <th>
            Last Update
        </th>
    </tr>
    @foreach (var item in Model)
    {     
        <tr>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.ProjectID }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.ProjectID })
            </td>
            <td>
                @item.Name
            </td>
            <td>
                @item.Description
            </td>
            <td>
                @item.IsForHelpDesk
            </td>
            <td>
                @item.CreatorName
            </td>
            <td>
                @String.Format("{0:g}", item.DateCreated)
            </td>
            <td>
                @String.Format("{0:g}", item.LastUpdate)
            </td>
        </tr>    
    }
</table>
@section ScriptContent{
}